<?php
   include("./dbconn.php");

   $id = $_GET["id"];
   $sql = "delete from midata where Id=$id";

    if ($conn->query($sql) === true){
       $data["code"] = 0;
    }else{
         $data["code"] =1;
    }
    $data["flag"] = true;
   echo json_encode($data);
?>